home *** CD-ROM | disk | FTP | other *** search
- Subject: Re: Content/Frame/Part quest
- Sent: 5/20/96 2:31 PM
- Received: 5/22/96 8:31 AM
- From: Mary Boetcher, mary_boetcher@quickmail.apple.com
- Reply-To: ODF-Interest@CILabs.ORG
- To: OpenDoc Development Framework Discussion List, ODF-Interest@CILabs.
-
- Reply to: RE>Content/Frame/Part question
-
- >> The content of a part I'm trying to build is basically
- text that the user edits in a FW_CEditText view. I keep an FW_CString in my
- Content class, but it needs to be updated before externalizing. So I would
- guess I should overide FW_CPart::ExternalizeContent() to do the
- synchronization, then call inherited::ExternalizeContent(), right?
-
- Close; you should override FW_CContent::Externalize, not ExternalizeContent:
-
- void CMyContent::Externalize( Environment* ev,
- ODStorageUnit* storageUnit,
- FW_EStorageKinds storageKind,
- FW_CCloneInfo* cloneInfo)
- {
- UpdateContentString(ev);
-
- // Externalize in order of fidelity
- ExternalizePartKind(ev, storageUnit);
- ExternalizeText(ev, storageUnit);
- }
-
- >> could a general UpdateContent() method be put in the FW_CPart class
- to handle things like content updating before externalization, apple event
- processing, linking, etc.?
- I'll investigate this. Thanks for the suggestion.
-
- Mary Boetcher
- ODF Person
-